package com.education.model;

import java.io.Serializable;
import java.text.ParseException;
import java.util.Date;

import com.education.util.DateUtil;

/**
 * @author 考试信息实体类
 * 修改 2017/8/6 by 雷紫辉  变量全部改为驼峰命名式
 * 注释掉course相关的字段 （不需要了）
 *
 */
public class ExamMessageModel implements Serializable {
    /**
     * 
     */
 
    /**
     * 考试信息编号
     */
    private int examId;
    /**
     * 考试地点
     */
    private String examPlace;
    /**
     * 考试开启时间
     * 2017/8/6 雷紫辉修改
     */
    private Date examStartTime;
    /**
     * 考试开启时间(String)
     */
    private String examStartTimeStr;
    /**
     * 考试关闭时间
     * 2017/8/6 雷紫辉修改
     */
    private Date examStopTime;
    /**
     * 关闭时间(String)
     */
    private String examStopTimeStr;
    /**
     * 考试形式
     */
    private String examForm;
    /**
     * 发布时间
     */
    private Date examAddTime;
    /**
     * 修改人
     */
    private int examMotifyPerson;
    /**
     * 修改时间
     */
    private Date examMotifyDate;
    /**
     * 删除状态
     */
    private int examDelete;
    /**
     * 教师id
     */
    private int teacherId;
    /**
     * 教师姓名
     */
    private String teacherName;
//    /**
//     * 课程id
//     */
//    private int courseId;
//    /**
//     * 课程名称
//     */
//    private String courseName;


    public Date getExamStartTime() {
        return examStartTime;
    }

    public void setExamStartTime(Date examStartTime) {
        this.examStartTime = examStartTime;
        this.examStartTimeStr=DateUtil.formatDate(examStartTime,"yyyy-MM-dd");
    }

    public String getExamStartTimeStr() {
        return examStartTimeStr;
    }


    public Date getExamStopTime() {
        return examStopTime;
    }

    public void setExamStopTime(Date examStopTime) {
        this.examStopTime = examStopTime;
        this.examStopTimeStr=DateUtil.formatDate(examStopTime,"yyyy-MM-dd");
    }

    public void setExamStartTimeStr(String examStartTimeStr) throws ParseException {
        this.examStartTimeStr = examStartTimeStr;
        this.examStartTime=DateUtil.formatString(examStartTimeStr,"yyyy-MM-dd");
    }

    public void setExamStopTimeStr(String examStopTimeStr) throws ParseException {
        this.examStopTimeStr = examStopTimeStr;
        this.examStopTime=DateUtil.formatString(examStopTimeStr,"yyyy-MM-dd");
    }

    public String getExamStopTimeStr() {
        return examStopTimeStr;
    }

    public int getExamid() {
        return examId;
    }

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public String getExamPlace() {
        return examPlace;
    }

    public void setExamPlace(String examPlace) {
        this.examPlace = examPlace;
    }

    public String getExamForm() {
        return examForm;
    }

    public void setExamForm(String examForm) {
        this.examForm = examForm;
    }

    public Date getExamAddTime() {
        return examAddTime;
    }

    public void setExamAddTime(Date examAddTime) {
        this.examAddTime = examAddTime;
    }

    public int getExamMotifyPerson() {
        return examMotifyPerson;
    }

    public void setExamMotifyPerson(int examMotifyPerson) {
        this.examMotifyPerson = examMotifyPerson;
    }

    public Date getExamMotifyDate() {
        return examMotifyDate;
    }

    public void setExamMotifyDate(Date examMotifyDate) {
        this.examMotifyDate = examMotifyDate;
    }

    public int getExamDelete() {
        return examDelete;
    }

    public void setExamDelete(int examDelete) {
        this.examDelete = examDelete;
    }

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public ExamMessageModel() {
    }


}
